import request from "@/utils/request";

// 学科管理模块Api

// 目录信息子模块，目录信息子模块，目录信息子模块

// 目录数据列表
export const GetDirectoryList = params => {
  return request({
    url: '/subject/directory',
    params
  })
}

// 目录增加新增
export const PostDirectoryApi = params => {
  return request({
    url: '/subject/directory',
    method: 'POST',
    params
  })
}

// 目录删除
export const DeleteDirectoryApi = id => {
  return request({
    url: `/subject/directory/${id}`,
    method: 'DELETE',
    params: { id }
  })
}

// 获取单个目录
export const ErrnoeDirectoryApi = id => {
  return request({
    url: `/subject/directory/${id}`,
  })
}

// 目录修改
export const PutDirectoryApi = data => {
  return request({
    url: `/subject/directory/${data.id}`,
    method: 'PUT',
    data
  })
}
